import { Component } from 'react'
import observer from './observer'
class Child2 extends Component {

    render() {
        observer.subscribe((data) => {
            console.log(data);
        })
        return (
            <div>这是子组件2</div>
        )
    }
}

export default Child2